← Back to issue list

Underscores in app names not reported properly

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1798205
Type
issue
State
open
Author
~roger.light
Labels
Created
2018-10-16 21:20:14.152753+00:00
Updated
2018-10-16 21:20:15.461093+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

If you have a snap with multiple apps, and one of the apps has an underscore in its name (p.s. it'd be nice to see something move on #1616507 :), then a confusing error is reported against the first app only, even if that is valid. For example, with the attached snapcraft.yaml including an app "one" and "two_three", the error is: Issues while validating snapcraft.yaml: The 'apps' property does not match the required schema: 'one' is not a valid app name. App names consist of upper- and lower-case alphanumeric characters and hyphens. They cannot start or end with a hyphen.

Evaluation history

No evaluation history available.